Skip to content

Started replacing OperatingSystem calls with precompiler directives. - #102

Closed
ghost wants to merge 1 commit into
masterfrom
unknown repository
Closed

Started replacing OperatingSystem calls with precompiler directives.#102
ghost wants to merge 1 commit into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Aug 28, 2025

Copy link
Copy Markdown

Focus

Essentially, this removes the need to check the OS since it'll be built for the target OS, maybe the tiniest minuscule performance boost. Thoughts?

due to this being more a proof of concept, i'm setting this to draft, since i might wait for #96

Unrelated

Also this does make a huge change to the .csproj markup layout, so yeah, that's great.

All Changes

  • Did some organisation of elements within the csproj file.
  • Updated a single character string to a char.
  • scpslExecutable is now set at the definition.
  • The copyright is now set automatically, and doesn't require updates through commits every year.
  • Added OS_WIN32 & OS_LINUX precompile definitions, then replaced the OperatingSystem.Is[Platform]() calls with precompiler definitions. (In the LocalAdmin.cs file.)

@ghost

ghost commented Aug 28, 2025

Copy link
Copy Markdown
Author

This has been sitting around on my PC for a long time, and I just fixed some conflicts, then uploaded it. Might as well not let it go to waste.

@ghost ghost closed this by deleting the head repository Nov 25, 2025
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants